

platform :ios, '12.0'
use_frameworks!
inhibit_all_warnings!


# CocoaPods官方源
source 'https://github.com/CocoaPods/Specs.git'

# 广告源
source 'https://gitee.com/XJCode250323489/AdSpec.git'
source 'https://gitee.com/jyadteam/JYSpecs.git'

# 阿里云pod源
source 'https://github.com/aliyun/aliyun-specs.git'
source 'https://gitee.com/cansng/p21Specs.git'
source 'https://gitee.com/cansng/theOnePods.git'


target 'oneYBImageBrowser_Example' do
  pod 'YYKit', git: 'https://gitee.com/cansng/oneYYKit.git'
  #pod 'YYImage'
  pod 'SDWebImage'

  pod 'oneYBImageBrowser', :path => '../'

  target 'oneYBImageBrowser_Tests' do
    inherit! :search_paths

    
  end
end


post_install do |installer|
  # 修改iOS Deployment Target
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = 'arm64'
      config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
    end
  end
end
